package com.imooc.girl.respository;

import com.imooc.girl.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by 10077 on 2018/3/6.
 * desc:
 */
public interface GirlRepostory extends JpaRepository<Girl,Integer> {

//    通过年龄来查询
    List<Girl> findByAge(Integer age);
}
